home *** CD-ROM | disk | FTP | other *** search
- /*
- ** This source code was written by Tim Endres
- ** Email: time@ice.com.
- ** USMail: 8840 Main Street, Whitmore Lake, MI 48189
- **
- ** Some portions of this application utilize sources
- ** that are copyrighted by ICE Engineering, Inc., and
- ** ICE Engineering retains all rights to those sources.
- **
- ** Neither ICE Engineering, Inc., nor Tim Endres,
- ** warrants this source code for any reason, and neither
- ** party assumes any responsbility for the use of these
- ** sources, libraries, or applications. The user of these
- ** sources and binaries assumes all responsbilities for
- ** any resulting consequences.
- */
-
- #define MAC_BINARY_HDR_SIZE 128
- #define MAC_BINARY_BLK_SIZE 128
-
-
- typedef struct { /* note everything is char to avoid alignment padding */
- unsigned char zero1;
- unsigned char nlen;
- unsigned char name[63];
- unsigned char type[4];
- unsigned char creator[4];
- unsigned char flags;
- unsigned char zero2;
- unsigned char location[6];
- unsigned char protected;
- unsigned char zero3;
- unsigned char dflen[4];
- unsigned char rflen[4];
- unsigned char cdate[4];
- unsigned char mdate[4];
- } F_BLK, *F_BLK_PTR;
-
- #ifndef ALLOC_CLASS
- #ifdef ALLOCATE_GLOBALS
-
- #define ALLOC_CLASS
- #define ALLOC_INIT(def) = def
- #define ALLOC_ARRAY(asize) [asize]
-
- #else
-
- #define ALLOC_CLASS extern
- #define ALLOC_INIT(def)
- #define ALLOC_ARRAY(asize) []
-
- #endif
- #endif
-
- ALLOC_CLASS char mb_head ALLOC_ARRAY(MAC_BINARY_HDR_SIZE);
- ALLOC_CLASS F_BLK_PTR mb_header ALLOC_INIT((F_BLK_PTR) mb_head);
-
-